package ${domain}.action.ajax.wsys;

import org.springframework.beans.factory.annotation.Autowired;
import ${domain}.frame.auth.LocalData;
import ${domain}.module.wsys.mgr.LogerrManager;
import ${domain}.module.wsys.req.LogerrCreateRequest;
import ${domain}.module.wsys.req.LogerrDeleteRequest;
import ${domain}.module.wsys.req.LogerrFindRequest;
import ${domain}.module.wsys.req.LogerrUpdateRequest;
import ${domain}.module.wsys.rsp.LogerrCreateResponse;
import ${domain}.module.wsys.rsp.LogerrDeleteResponse;
import ${domain}.module.wsys.rsp.LogerrFindResponse;
import ${domain}.module.wsys.rsp.LogerrUpdateResponse;

public class LogerrAjax {

    @Autowired
    private LogerrManager logerrManager;

    public LogerrCreateResponse create(LogerrCreateRequest request) {
        return logerrManager.create(request, LocalData.getToken());
    }

    public LogerrDeleteResponse delete(LogerrDeleteRequest request) {
        return logerrManager.delete(request, LocalData.getToken());
    }

    public LogerrUpdateResponse update(LogerrUpdateRequest request) {
        return logerrManager.update(request, LocalData.getToken());
    }

    public LogerrFindResponse find(LogerrFindRequest request) {
        return logerrManager.find(request, LocalData.getToken());
    }
}
